<?php
// 测试代码
namespace Factory;

class Factory
{
    // 创建对象
    public function create($type)
    {
        $factory = new ChinaFactory();
        $obj = $factory->create($type); 
        dd($obj);
    }
}